<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:if="${session.loginResult != null}">
        <div th:text="${session.loginResult.data.username}"></div>
    </div>
    <div><a th:href="@{/user/loginOut}">注销</a></div>
    <a th:href="@{/user/login}">登录</a>
</body>
</html>